/**
 * @format
 */
import * as React from 'react';
import {AppRegistry, View} from 'react-native';
import App from './src/App';
import {name as appName} from './app.json';
import MyLoading from './src/components/MyLoading';

const Setup = () => {
  return (
    <View
      style={{
        flex: 1,
      }}>
      <App />
      {
        <MyLoading
          ref={ref => {
            global.mLoadingComponentRef = ref;
          }}
        />
      }
    </View>
  );
};

AppRegistry.registerComponent(appName, () => Setup);
